package com.sakura.system.exception;

import lombok.Data;

/**
 * 自定义异常
 */
@Data
public class BusinessErrorException extends RuntimeException{

//    private static final long serialVersionUID = -7480022450501760611L;
    /**
     * 异常码
     */
//    private String code;
    /**
     * 异常提示信息
     */
    private String message;
//    public BusinessErrorException(BusinessMsgEnum businessMsgEnum) {
//        this.code = businessMsgEnum.code();
//        this.message = businessMsgEnum.msg();
//    }

    public BusinessErrorException(String s) {
        this.message = s;
    }
}
